package com.diver.flinkdemo.dto.xxt;



import com.diver.flinkdemo.utils.ObjectUtils;

import java.io.Serializable;

/**
 * 步伐记录接收对象
 * Created by Cao Ye on 2018/07/05.
 */
public class PaceRecordInfo implements Serializable {
    // 序列化版本
    private static final long serialVersionUID = -7059103537844076544L;

    //当天步伐
    private String step;

    //当前时间戳
    private Long timeStamp;

    //时间
    private String timeStampd;


    public PaceRecordInfo(String step, Long timeStamp) {
        this.step = step;
        this.timeStamp = timeStamp;
    }

    public PaceRecordInfo() {
    }

    public String getStep() {
        return step;
    }

    public void setStep(String step) {
        this.step = step;
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getTimeStampd() {
        return timeStampd;
    }

    public void setTimeStampd(String timeStampd) throws Exception {
        setTimeStamp(ObjectUtils.parseTimeByDay(timeStampd));
        this.timeStampd = timeStampd;
    }

    @Override
    public String toString() {
        return "PaceRecordInfo{" +
                "step='" + step + '\'' +
                ", timeStamp=" + timeStamp +
                ", timeStampd='" + timeStampd + '\'' +
                '}';
    }
}
